﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Geometric_Modeling
{
    /// <summary>
    /// Logique d'interaction pour BoxQuadric.xaml
    /// </summary>
    public partial class BoxQuadric : Window
    {
        public BoxQuadric(myMesh m)
        {
            InitializeComponent();
            Label1.Content = "Nb Vertex : " + m.vertices.Count + " / Nb after :";
            Label2.Content = m.vertices.Count();
            slide.Minimum = 1;
            slide.Maximum = m.vertices.Count();
            slide.Value = m.vertices.Count();
        }

        private void Slider_ValueChanged_1(object sender, RoutedPropertyChangedEventArgs<double> e)
        {
            Label2.Content = (int)slide.Value;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Close();
        }

        public int GetResultEdge()
        {
            return (int)slide.Value;
        }

    }
}
